Fix mem leaks. Bug #389194.
authorChristian Persch <chpe@cvs.gnome.org>
Mon, 25 Dec 2006 12:03:44 +0000 (12:03 +0000)
committerChristian Persch <chpe@src.gnome.org>
Mon, 25 Dec 2006 12:03:44 +0000 (12:03 +0000)
2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
(add_custom_paper): Fix mem leaks. Bug #389194.

ChangeLog
gtk/gtkpagesetupunixdialog.c

index 3a5e9e1196e18c88103279ded33569aa263e6f61..d6dc59119bf38ee4d31bae3b2bca1fd9baf176c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
+
+       * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
+       (add_custom_paper): Fix mem leaks. Bug #389194.
+
 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktextutil.c: Remove debug output.
index df1a936e98bf872f0bd5c543458579cd900ff4ad..e1cc290521e1a6bcf0a24413b42eed71e4fa3a73 100644 (file)
@@ -490,6 +490,7 @@ printer_status_cb (GtkPrintBackend        *backend,
   gtk_list_store_set (priv->printer_list, iter,
                       PRINTER_LIST_COL_NAME, str,
                       -1);
+  g_free (str);
 }
 
 static void
@@ -1647,6 +1648,7 @@ add_custom_paper (CustomPaperDialog *data)
   gtk_tree_view_set_cursor (GTK_TREE_VIEW (data->treeview), path,
                            data->text_column, TRUE);
   gtk_tree_path_free (path);
+  g_free (name);
 }
 
 static void